{% extends 'TopxiaWebBundle:Settings:layout.html.twig' %}
{% block title %}{{'支付密码'|trans}} - {{'安全设置'|trans}} - {{ parent() }}{% endblock %}
{% set script_controller = 'settings/find_pay_password' %}
{% set side_nav = 'security' %}
{% set questionOptions = dict('secureQuestion') %}

{% block main %}
 {% embed "TopxiaWebBundle:Bootstrap:panel.html.twig" with {class:'panel-col'} %}
    {% block heading %}
      {{'安全设置'|trans}}
    {% endblock %}
    {% block body %}

      <ul class="breadcrumb">
        <li><a href="{{ path('settings_security') }}">{{'安全设置'|trans}}</a></li>
        <li class="active">{{'找回支付密码'|trans}}</li>
      </ul>

      {% set type = 'questions' %}
      {% include 'TopxiaWebBundle:Settings:questions-or-sms-tabs.html.twig' %}
      {# <br> #}


    {{ web_macro.flash_messages() }}

    <form id="settings-find-pay-password-form" class="form-horizontal" method="post" >
        <div class="form-group row">
          <div  class="col-md-2 control-label"><label for="answer">{{ questionOptions[question] }}</label></div>
          <div class=" col-md-8 controls">
            <input type="text" id="answer" name="answer" class="form-control" value="" placeholder="{{'安全问题答案'|trans}}">
          </div>
          {# <div class="controls"><p class="help-block"></p></div> #}
        </div>

        <div class="form-group">
          <div class="col-md-offset-2 col-md-8 controls">
            <input id="answer-question-btn" data-submiting-text="{{'正在保存'|trans}}" class="btn btn-primary" type="submit" value="{{'提交'|trans}}">
          </div>
        </div>

        <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
        <input type="hidden" name="questionNum" class="form-control" value="{{questionNum}}">
    </form>


    {% endblock %}
  {% endembed %}
{% endblock %}